import random

def generate_test_data(file_name, num_elements, range_min, range_max):
    test_data = [random.randint(range_min, range_max) for _ in range(num_elements)]
    with open(file_name, 'w') as file:
        file.write(str(test_data))

if __name__ == "__main__":
    generate_test_data('test_data.txt', 100, 1, 10)